@mixin clearfix {
  &:after {
    content: "";
    display: table;
    clear: both;
  }
}

@mixin scrollBar {
  &::-webkit-scrollbar-track-piece {
    background: #d3dce6;
  }

  &::-webkit-scrollbar {
    width: 6px;
  }

  &::-webkit-scrollbar-thumb {
    background: #99a9bf;
    border-radius: 20px;
  }
}

@mixin list_icons {
  width: 32px;
  height: 32px;
  background-size: 100%;
  cursor: pointer;
  margin-right: 14px;
}

@mixin points {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 7px;
  margin-right: 5px;
}

@mixin dialog_head_icons {
  width: 16px;
  height: 16px;
  background-size: 100%;
  margin-right: 12px;
  margin-top: 7px;
}

@mixin dialog_head_close {
  width: 30px;
  height: 30px;
  background: #FFFFFF;
  box-shadow: 0px 5px 9px 0px rgba(0, 0, 0, 0.04);
  border-radius: 50%;
  padding: 9px;
}

@mixin relative {
  position: relative;
  width: 100%;
  height: 100%;
}

// 重要提示
@mixin FirstFont($color: $MainColor, $weight: bold) {
  font-size: $ImportantNotesSize; // 24px
  font-weight: $weight;
  color: $color;
}

// 标题
@mixin SecondFont($color: $MainColor, $weight: 400) {
  font-size: $TitleSize; // 20px
  font-weight: $weight;
  color: $color;
}

// 副标题
@mixin ThirdFont($color: $MainColor, $weight: 400) {
  font-size: $SubtitleSize; // 18px
  font-weight: $weight;
  color: $color;
}

// 小标题
@mixin FourthFont($color: $MainColor, $weight: 400) {
  font-size: $SubheadingSize; // 16px;
  font-weight: $weight;
  color: $color;
}

// 正文内容
@mixin FifthFont($color: $MainColor, $weight: 400) {
  font-size: $FontSize; // 14px
  font-weight: $weight;
  color: $color;
}

// 提示，辅助文字
@mixin SixthFont($color: $AuxiliaryColourDark, $weight: 400) {
  font-size: $SubFontSize; // 12px
  font-weight: $weight;
  color: $color;
}

// button 样式,需要写在父级
@mixin FirstButton($color: $MainColor, $hoveBgColor: $backgroundColour) {
  .el-button {
    border: none;
    color: $color;
    background-color: transparent;
  }

  .el-button.is-plain:hover {
    background: $hoveBgColor;
  }
}

// button样式，修改/保存 基本样式长方形
@mixin PrimaryPlainButton($color: $MainColor, $hoveBgColor: $backgroundColour) {
  .el-button--primary {
    min-width: 120px;
  }

  .el-button--primary.is-plain {
    height: 40px;
    background: #fff;
  }

  .el-button--primary.is-plain:hover,
  .el-button--primary.is-plain:focus {
    background: $MainColor !important;
  }
}

// 弹窗 button 样式
@mixin SecondButton() {
  width: 120px;
  height: 40px;
  // box-shadow: 0px 4px 15px 0px rgba(71, 155, 99, 0.57);
}

// 提交报告 button 样式 120 * 34 带图片
@mixin UploadReportBtn() {
  width: 120px;
  height: 34px;
  padding: 0;
  margin: 0;
  line-height: 34px;
  text-align: left;
  padding-left: 14px;
  font-size: 16px;
  position: relative;
  top: 2px;
  .uploadReportIcon {
    position: relative;
    margin-right: 4px;
    /* top: 1px; */
  }
}

// 提交报告旁边二级按钮
@mixin SmallUploadReportBtn() {
  // width: 120px;
  // background-color: #EEEEEE;
  height: 28px;
  padding: 0;
  margin: 0;
  line-height: 28px;
  text-align: left;
  padding: 0 9px;
  position: relative;
  top: 2px;
  border: none;
  background: #f7f7f7;
  @include FifthFont(#666666,400);

  .SmallUploadReportBtnIcon {
    position: relative;
    // margin-right: 4px;
    top: 2px;
  }
}

// 文字超长省略
@mixin Omitted() {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}